package com.wang.gulimall.order.feign;


import com.wang.common.utils.R;
import com.wang.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 查询用户的收货地址列表
     * @param memberId
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getMemberAddressList(@PathVariable("memberId") Long memberId);


    /**
     * 根据地址id查询地址的详细信息
     * @param
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/info/{id}")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

}
